package org.zhengquan.dao;

import org.apache.ibatis.annotations.Param;
import org.zhengquan.dto.SearchLogDto;
import org.zhengquan.pojo.SysLog;
import org.zhengquan.pojo.SysLogWithBLOBs;
import org.zhengquan.vo.PageQuery;

import java.util.List;

public interface SysLogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysLogWithBLOBs record);

    int insertSelective(SysLogWithBLOBs record);

    SysLogWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysLogWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(SysLogWithBLOBs record);

    int updateByPrimaryKey(SysLog record);

    /**
     * 根据搜索条件查询结果条目数
     *
     * @param searchLogDto
     * @return
     */
    int countBySearchDto(@Param("searchLogDto") SearchLogDto searchLogDto);

    /**
     * 根据搜索条件查询结果分页展示
     * @param searchLogDto
     * @param pageQuery
     * @return
     */
    List<SysLogWithBLOBs> selectPageListBySearchDto(@Param("searchLogDto") SearchLogDto searchLogDto, @Param("pageQuery") PageQuery pageQuery);
}